package dw.fastfile.common.config;

import dw.fastfile.common.enums.EnumFieldService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @description: 启动时加载缓存
 * @author: wanghao
 * @create: 2022-09-22 18:41
 **/
@Component
public class MyApplicationRunner implements ApplicationRunner {

    @Resource
    private EnumFieldService enumFieldService;

    @Override
    public void run(ApplicationArguments args) {
        enumFieldService.putEnum();
    }
}
